package com.dt76.smallloanbackenduser.remote.afterloan;


import com.dt76.smallloanbackenduser.pojo.afterloan.InspectionCommitInfo;
import com.dt76.smallloanbackenduser.pojo.afterloan.InspectionSimpleLoanMessage;
import com.dt76.smallloanbackenduser.pojo.afterloan.RepaymentQualification;
import com.dt76.smallloanbackenduser.utils.PageResult;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;


@FeignClient(name = "smallloan-backend-service")
public interface InspectionRemote {

    @PostMapping(value = "/inspection/getPageList", consumes = "application/json")
    public PageResult getPageList(@RequestBody RepaymentQualification q, @RequestParam("page") Integer page, @RequestParam("size") Integer size);

    @PostMapping(value = "/inspection/simpleLoanInfoSearch", consumes = "application/json")
    public Integer simpleLoanInfoSearch(@RequestBody InspectionCommitInfo commitInfo);

    @RequestMapping("/inspection/getAllSimpleLoanMessage")
    public List<InspectionSimpleLoanMessage> getAllSimpleLoanMessage();

    @RequestMapping(value = "/inspection/getTheSimpleLoanMessage", consumes = "application/json")
    public List<InspectionSimpleLoanMessage> getTheSimpleLoanMessage(@RequestBody InspectionCommitInfo info);
}
